package cn.zn.modules.budget.cur.service.impl;

import cn.zn.framework.common.utils.PageUtils;
import cn.zn.modules.budget.cur.dao.TBudgetInDao;
import cn.zn.modules.budget.cur.entity.TBudgetInEntity;
import cn.zn.modules.budget.cur.service.TBudgetInService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;


@Service("tBudgetInService")
public class TBudgetInServiceImpl extends ServiceImpl<TBudgetInDao, TBudgetInEntity> implements TBudgetInService {

    @Override
    public PageUtils queryPage(TBudgetInEntity tBudgetIn, IPage<TBudgetInEntity> page) {

        QueryWrapper<TBudgetInEntity> tBudgetInQueryWrapper = Wrappers.query();

        IPage<TBudgetInEntity> pageResult = this.page(page, tBudgetInQueryWrapper);
        return new PageUtils(pageResult);
    }

}